using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class endoMap : EntityTypeConfiguration<endo>
    {
        public endoMap()
        {
            // Primary Key
            this.HasKey(t => t.Endo_id);

            // Properties
            this.Property(t => t.asym_com)
                .IsFixedLength()
                .HasMaxLength(30);

            this.Property(t => t.pain_com)
                .IsFixedLength()
                .HasMaxLength(30);

            this.Property(t => t.swel_com)
                .IsFixedLength()
                .HasMaxLength(30);

            this.Property(t => t.fist_com)
                .IsFixedLength()
                .HasMaxLength(30);

            this.Property(t => t.mob_com)
                .IsFixedLength()
                .HasMaxLength(30);

            // Table & Column Mappings
            this.ToTable("endo");
            this.Property(t => t.Endo_id).HasColumnName("Endo_id");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.car_mec).HasColumnName("car_mec");
            this.Property(t => t.pulpcap).HasColumnName("pulpcap");
            this.Property(t => t.root_canal).HasColumnName("root_canal");
            this.Property(t => t.tooth_o).HasColumnName("tooth_o");
            this.Property(t => t.tooth_s).HasColumnName("tooth_s");
            this.Property(t => t.prev_i_d).HasColumnName("prev_i_d");
            this.Property(t => t.traum_inj).HasColumnName("traum_inj");
            this.Property(t => t.acut_pain).HasColumnName("acut_pain");
            this.Property(t => t.acut_today).HasColumnName("acut_today");
            this.Property(t => t.acut_past).HasColumnName("acut_past");
            this.Property(t => t.chro_pain).HasColumnName("chro_pain");
            this.Property(t => t.chro_today).HasColumnName("chro_today");
            this.Property(t => t.chro_past).HasColumnName("chro_past");
            this.Property(t => t.cons_endo).HasColumnName("cons_endo");
            this.Property(t => t.prev_surg).HasColumnName("prev_surg");
            this.Property(t => t.hemisect).HasColumnName("hemisect");
            this.Property(t => t.crow_dark).HasColumnName("crow_dark");
            this.Property(t => t.crow_disc).HasColumnName("crow_disc");
            this.Property(t => t.swelling).HasColumnName("swelling");
            this.Property(t => t.swe_today).HasColumnName("swe_today");
            this.Property(t => t.swe_loc).HasColumnName("swe_loc");
            this.Property(t => t.swe_diff).HasColumnName("swe_diff");
            this.Property(t => t.swe_past).HasColumnName("swe_past");
            this.Property(t => t.fistula).HasColumnName("fistula");
            this.Property(t => t.fist_past).HasColumnName("fist_past");
            this.Property(t => t.mobil).HasColumnName("mobil");
            this.Property(t => t.norm_app).HasColumnName("norm_app");
            this.Property(t => t.rec_pulp).HasColumnName("rec_pulp");
            this.Property(t => t.caries).HasColumnName("caries");
            this.Property(t => t.lamina).HasColumnName("lamina");
            this.Property(t => t.apical).HasColumnName("apical");
            this.Property(t => t.per_status).HasColumnName("per_status");
            this.Property(t => t.ext_resorp).HasColumnName("ext_resorp");
            this.Property(t => t.int_resorp).HasColumnName("int_resorp");
            this.Property(t => t.frac_root).HasColumnName("frac_root");
            this.Property(t => t.osteos).HasColumnName("osteos");
            this.Property(t => t.radio_les).HasColumnName("radio_les");
            this.Property(t => t.pain_today).HasColumnName("pain_today");
            this.Property(t => t.pain_past).HasColumnName("pain_past");
            this.Property(t => t.pain_spont).HasColumnName("pain_spont");
            this.Property(t => t.pain_stimu).HasColumnName("pain_stimu");
            this.Property(t => t.pain_sp_st).HasColumnName("pain_sp_st");
            this.Property(t => t.pain_loc).HasColumnName("pain_loc");
            this.Property(t => t.pain_diff).HasColumnName("pain_diff");
            this.Property(t => t.duration).HasColumnName("duration");
            this.Property(t => t.pres_pain).HasColumnName("pres_pain");
            this.Property(t => t.past_pain).HasColumnName("past_pain");
            this.Property(t => t.inc_heat).HasColumnName("inc_heat");
            this.Property(t => t.inc_cold).HasColumnName("inc_cold");
            this.Property(t => t.inc_lying).HasColumnName("inc_lying");
            this.Property(t => t.inc_press).HasColumnName("inc_press");
            this.Property(t => t.inc_exerc).HasColumnName("inc_exerc");
            this.Property(t => t.inc_sweet).HasColumnName("inc_sweet");
            this.Property(t => t.dec_heat).HasColumnName("dec_heat");
            this.Property(t => t.dec_cold).HasColumnName("dec_cold");
            this.Property(t => t.dec_medic).HasColumnName("dec_medic");
            this.Property(t => t.tooth_vita).HasColumnName("tooth_vita");
            this.Property(t => t.par).HasColumnName("par");
            this.Property(t => t.pulp_norm).HasColumnName("pulp_norm");
            this.Property(t => t.pulp_hyper).HasColumnName("pulp_hyper");
            this.Property(t => t.pulp_rever).HasColumnName("pulp_rever");
            this.Property(t => t.pulp_irrev).HasColumnName("pulp_irrev");
            this.Property(t => t.pulp_nec).HasColumnName("pulp_nec");
            this.Property(t => t.pulp_resor).HasColumnName("pulp_resor");
            this.Property(t => t.peri_norm).HasColumnName("peri_norm");
            this.Property(t => t.peri_acute).HasColumnName("peri_acute");
            this.Property(t => t.peri_chron).HasColumnName("peri_chron");
            this.Property(t => t.peri_other).HasColumnName("peri_other");
            this.Property(t => t.summary).HasColumnName("summary");
            this.Property(t => t.crow_build).HasColumnName("crow_build");
            this.Property(t => t.apexif).HasColumnName("apexif");
            this.Property(t => t.pulpotomy).HasColumnName("pulpotomy");
            this.Property(t => t.non_surgic).HasColumnName("non_surgic");
            this.Property(t => t.surgic_end).HasColumnName("surgic_end");
            this.Property(t => t.post_endo).HasColumnName("post_endo");
            this.Property(t => t.asym_yr).HasColumnName("asym_yr");
            this.Property(t => t.pain_yr).HasColumnName("pain_yr");
            this.Property(t => t.swell_yr).HasColumnName("swell_yr");
            this.Property(t => t.fist_yr).HasColumnName("fist_yr");
            this.Property(t => t.mob_yr).HasColumnName("mob_yr");
            this.Property(t => t.asym_com).HasColumnName("asym_com");
            this.Property(t => t.pain_com).HasColumnName("pain_com");
            this.Property(t => t.swel_com).HasColumnName("swel_com");
            this.Property(t => t.fist_com).HasColumnName("fist_com");
            this.Property(t => t.mob_com).HasColumnName("mob_com");
            this.Property(t => t.intact).HasColumnName("intact");
            this.Property(t => t.notintact).HasColumnName("notintact");
            this.Property(t => t.decrease).HasColumnName("decrease");
            this.Property(t => t.samesize).HasColumnName("samesize");
            this.Property(t => t.increase).HasColumnName("increase");
        }
    }
}
